<%@ page import="com.ruantu.clothing.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: GC
  Date: 2018/7/11
  Time: 19:57
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String contextPath = request.getContextPath();
    request.setAttribute("contextPath", contextPath);
%>

<html><head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- PAGE settings -->
    <link rel="icon" href="https://templates.pingendo.com/assets/Pingendo_favicon.ico">
    <title>库存盘点</title>
    <meta name="description" content="Free Bootstrap 4 Pingendo Aquamarine template made for app and softwares.">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
    <meta name="keywords" content="Pingendo app aquamarine free template bootstrap 4">
    <!-- CSS dependencies -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
    <link rel="stylesheet" href="css/wxindex.css">
    <link rel="stylesheet" type="text/css" href="css/weui.css">
    <!-- Script: Make my navbar transparent when the document is scrolled to top -->
    <%--<link rel="stylesheet" href="css/style.css">--%>
    <!-- Script: Animated entrance -->
    <script src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/weui.js"></script>
   <%--微信--%>
    <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
    <script src="js/zepto.min.js"></script>
    <%--<script src="js/saoyisaoImpl.js"></script>--%>
<script src="js/wxsearch.js" charset="UTF-8"></script>
    <script src="js/totop.js" charset="UTF-8"></script>
</head><body>
<input id="saomama" style="display:none" type="text" value="<%=request.getParameter("saomama")%>">

<div class="py-4 text-white text-center bg-dark">
    <div class="container">
        <div class="row">
            <div class="col-md-12">

                <p class="lead mb-4">库存盘点</p>
                <%--<i id="scanQRCode1" class="fa fa-fw fa-instagram fa-3x text-white"></i>--%>
                <div style="text-align: center">
                    <img id="scanQRCode1" src="img/saoys.png" alt="扫一扫" width="40px" height="40px">
                </div><br>
                <div style="text-align: center">
                    <div class="input-group">
                        <input type="text" id="searchtext" class="form-control" placeholder="请输入款号/编号">
                        <div class="input-group-append">
                            <button id="sousuoceshi" onclick="searchbytext()" class="btn btn-primary" type="button">搜索</button>
                        </div>
                    <%--<button onclick="nextIndex()" type="button">sssss</button>--%>
                    </div>
                </div>
            </div>
        </div><div style="padding-top: 20px" ><a href="javascript:  dialog('提示','确定退出当前用户？',function() {
        window.location.href='${contextPath}/wxuser/wxExit.do' });">切换用户</a>
        &nbsp;&nbsp;&nbsp;<a href="javascript:;">|</a>&nbsp;&nbsp;&nbsp;
<%--${contextPath}/wxuser/wxExit.do--%>
        <a href="pdjllb.jsp">查看记录</a></div>
    </div>
</div>
<!-- JavaScript dependencies -->
<div class="py-3 bg-light"><div class="container"><div class="row"><div id="wujilu" class="col-md-12">
    <table class="table">
    <thead>
  <%--  <tr>
        <th>款号</th>

        <th>编号</th>
        <th>盘点</th>
    </tr>--%>
    </thead>
    <tbody id="searchByTextResult">

    </tbody>
    <tfoot>

    </tfoot>
</table></div></div></div>

</div><div style="background-color: #F5F5F5;text-align: center;color: #3F3F3F;font-size: 14px" id="daodile">
</div>
<%--<div id="loadgif" style="width:66px;height:66px;position:fixed;top:50%;left:45%;">
    　　<img  alt="加载中..." src="img/jiazai.gif" height="70%" width="70%"/>
    <h7 style="text-align: center"> 加载中...</h7>
</div>--%>
<div id="to_top" style="width:30px;height:35px;position:absolute;opacity:0.5;">
    <img src="img/totop.jpg" width="35px";height="50px">
</div>
<script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', 'UA-29443235-15');
</script>
<script>

  $(function(){
        init();
    })

    function init(){
        var pageUrl=location.href.split('#')[0];
        var urlbianyi=encodeURIComponent(pageUrl);
        $.ajax({
            url:path+"/wxConfig/gtConfig.do",
            type:"get",
            dataType:"json",
            data: {
                url:pageUrl,
            },
            async:true,
            success:function(data){
                //console.log(data);
                wx.config({
                    debug: false,
                    appId: data.appId,
                    timestamp: data.timestamp,
                    nonceStr: data.nonceStr,
                    signature: data.signature,
                    jsApiList: [
                        'checkJsApi',
                        'onMenuShareTimeline',
                        'onMenuShareAppMessage',
                        'onMenuShareQQ',
                        'onMenuShareWeibo',
                        'onMenuShareQZone',
                        'hideMenuItems',
                        'showMenuItems',
                        'hideAllNonBaseMenuItem',
                        'showAllNonBaseMenuItem',
                        'translateVoice',
                        'startRecord',
                        'stopRecord',
                        'onVoiceRecordEnd',
                        'playVoice',
                        'onVoicePlayEnd',
                        'pauseVoice',
                        'stopVoice',
                        'uploadVoice',
                        'downloadVoice',
                        'chooseImage',
                        'previewImage',
                        'uploadImage',
                        'downloadImage',
                        'getNetworkType',
                        'openLocation',
                        'getLocation',
                        'hideOptionMenu',
                        'showOptionMenu',
                        'closeWindow',
                        'scanQRCode',
                        'chooseWXPay',
                        'openProductSpecificView',
                        'addCard',
                        'chooseCard',
                        'openCard'
                    ],
                    success:function(res){
                        //console.log(res)
                    }
                });



                /* wx.scanQRCode({
                     needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                     scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
                     success: function (res) {
                         var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
                     }
                 });*/

            },
            error:function(){
                console.log("请求异常");
            }
        });
    }


</script>
</body>
</html>

<% User user1=(User)session.getAttribute("info");
    if(user1!=null){%>
　
<%}else{ %>
<%response.sendRedirect("wxlogin.jsp"); %>
<%} %>